#include<iostream>
using namespace std;

int main()
{ int v[10],n,i,aux;
  cout<<"dimensiunea sirului";
  cin>>n;

for(i=0;i<n;i++)
{ cout<<"v["<<i<<"]=";
  cin>>v[i];
}

for(i=0;i<n-1;i++)
  if(v[i]%2!=0)
   { aux=v[i];
    v[i]=v[i+1];
    v[i+1]=aux;
    }

for(i=0;i<n;i++)
cout<<v[i]<<" ";
return 0;
}
